<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class WeChatKeyWord extends BaseModel
{
    //
    protected $table = 'we_chat_keywords';
    protected $fillable = ['id','site_id', 'module_id', 'wechat_id', 'word', 'rule_id', 'regexp'];
    protected $casts = [
        'regexp' => 'boolean'
    ];
    public function rule(){
        return $this->belongsTo(WeChatRule::class,'rule_id');
    }

}
